<?php

/**
 * NOTICE OF LICENSE
 *
 * THIS SOURCE FILE IS PART OF EVEBIT'S PRIVATE PROJECT.
 * 
 * DO NOT USE THIS FILE IN OTHER PLACE.
 *
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: Block.php 130 2011-03-18 03:10:02Z cheng.wei $$
 * @copyright Copyright (c) 2008 Evebit Inc. China (http://www.evebit.com)
 */

/**
 * Render block
 * 
 * @package   App_Sample
 * @author    Cheng Wei <berlios.o@gmail.com>
 * @version   $$Id: Block.php 130 2011-03-18 03:10:02Z cheng.wei $$
 */
class Evebit_View_Helper_Block extends Zend_View_Helper_Abstract {
	
	/**
	 * Render block
	 * 
	 * @return html
	 */
	public function block($template, $param = array()) {
		$param["template"] = $template;
		if ($template == "datetime") {
			$param["scope"] = "public";
		}
		return $this->view->action('render', 'block', 'blocks', $param);
	}
}